package cn.kgc.springboot1048.spring_vue2.controller;


import cn.kgc.springboot1048.spring_vue2.service.HousetypeService;
import com.baomidou.mybatisplus.extension.api.R;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author szz
 * @since 2024-04-10
 */
@CrossOrigin
@RestController
@RequestMapping("/spring_vue2/housetype")
public class HousetypeController {

    @Resource
    HousetypeService housetypeService;

    @GetMapping("/select")
    public R select(){
        return R.ok(housetypeService.list());
    }
}

